package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.YqgInformationOrderingMapper;
import com.ruoyi.project.domain.YqgInformationOrdering;
import com.ruoyi.project.service.IYqgInformationOrderingService;

/**
 * 点餐信息暂存Service业务层处理
 * 
 * @author dr
 * @date 2023-04-17
 */
@Service
public class YqgInformationOrderingServiceImpl implements IYqgInformationOrderingService 
{
    @Autowired
    private YqgInformationOrderingMapper yqgInformationOrderingMapper;

    /**
     * 查询点餐信息暂存
     * 
     * @param ID 点餐信息暂存主键
     * @return 点餐信息暂存
     */
    @Override
    public YqgInformationOrdering selectYqgInformationOrderingByID(Long ID)
    {
        return yqgInformationOrderingMapper.selectYqgInformationOrderingByID(ID);
    }

    /**
     * 查询点餐信息暂存列表
     * 
     * @param yqgInformationOrdering 点餐信息暂存
     * @return 点餐信息暂存
     */
    @Override
    public List<YqgInformationOrdering> selectYqgInformationOrderingList(YqgInformationOrdering yqgInformationOrdering)
    {
        return yqgInformationOrderingMapper.selectYqgInformationOrderingList(yqgInformationOrdering);
    }

    @Override
    public List<YqgInformationOrdering> selectYqgInformationOrderingListNomal(YqgInformationOrdering yqgInformationOrdering)
    {
        return yqgInformationOrderingMapper.selectYqgInformationOrderingListNomal(yqgInformationOrdering);
    }


    /**
     * 新增点餐信息暂存
     * 
     * @param yqgInformationOrdering 点餐信息暂存
     * @return 结果
     */
    @Override
    public int insertYqgInformationOrdering(YqgInformationOrdering yqgInformationOrdering)
    {
        return yqgInformationOrderingMapper.insertYqgInformationOrdering(yqgInformationOrdering);
    }

    /**
     * 修改点餐信息暂存
     * 
     * @param yqgInformationOrdering 点餐信息暂存
     * @return 结果
     */
    @Override
    public int updateYqgInformationOrdering(YqgInformationOrdering yqgInformationOrdering)
    {
        return yqgInformationOrderingMapper.updateYqgInformationOrdering(yqgInformationOrdering);
    }

    /**
     * 批量删除点餐信息暂存
     * 
     * @param IDs 需要删除的点餐信息暂存主键
     * @return 结果
     */
    @Override
    public int deleteYqgInformationOrderingByIDs(Long[] IDs)
    {
        return yqgInformationOrderingMapper.deleteYqgInformationOrderingByIDs(IDs);
    }

    /**
     * 删除点餐信息暂存信息
     * 
     * @param ID 点餐信息暂存主键
     * @return 结果
     */
    @Override
    public int deleteYqgInformationOrderingByID(Long ID)
    {
        return yqgInformationOrderingMapper.deleteYqgInformationOrderingByID(ID);
    }
}
